/*
 * seft_errno.h
 *
 *  Created on: 2012-2-20
 *      Author: iot
 */

#ifndef _SEFT_ERRNO_H_
#define _SEFT_ERRNO_H_

/*
*******************************************************************************
**  Macro define
*******************************************************************************
*/

#define SEFT_SUCCESS									(0x00000000)
#define SEFT_FAILURE									((int)-1)

#define SEFT_ERRNO_BASE								(0xBABE0000)
#define SEFT_INVALID_PARAMETER							(SEFT_ERRNO_BASE + 0x01)
#define SEFT_PACKET_LEN_ERROR							(SEFT_ERRNO_BASE + 0x02)
#define SEFT_PACKET_HEAD_PARTIAL						(SEFT_ERRNO_BASE + 0x03)
#define SEFT_PACKET_PAYLOAD_PARTIAL					(SEFT_ERRNO_BASE + 0x04)
#define SEFT_CRC_VERIFY_FAIL							(SEFT_ERRNO_BASE + 0x05)
#define SEFT_MSG_ID_ERROR								(SEFT_ERRNO_BASE + 0x06)
#define SEFT_SOCKET_CREATE_ERROR						(SEFT_ERRNO_BASE + 0x07)
#define SEFT_SOCKET_CONNECT_ERROR						(SEFT_ERRNO_BASE + 0x08)
#define SEFT_SOCKET_RECV_ERROR							(SEFT_ERRNO_BASE + 0x09)
#define SEFT_SOCKET_SHUTDOWN							(SEFT_ERRNO_BASE + 0x0A)
#define SEFT_SOCKET_POLLING_TIMEOUT					(SEFT_ERRNO_BASE + 0x0B)
#define SEFT_FILE_SAVED_ERROR							(SEFT_ERRNO_BASE + 0x0C)
#define SEFT_UPLOAD_FILE_ERROR							(SEFT_ERRNO_BASE + 0x0D)
#define SEFT_SOCKET_CONNECT_WOULD_BLOCK				(SEFT_ERRNO_BASE + 0x0E)
#define SEFT_FILE_CANNOT_OPEN							(SEFT_ERRNO_BASE + 0x0F)
#define SEFT_FILE_UPLOAD_EXIST							(SEFT_ERRNO_BASE + 0x10)
#define SEFT_SQLITE3_OPEN_FAILED						(SEFT_ERRNO_BASE + 0x11)
#define SEFT_SQLITE3_PREPARE_FAILED					(SEFT_ERRNO_BASE + 0x12)
#define SEFT_SQLITE3_STEP_FAILED						(SEFT_ERRNO_BASE + 0x13)
#define SEFT_SEND_MSG_FAILED							(SEFT_ERRNO_BASE + 0x14)

















#endif /* _SEFT_ERRNO_H_ */
